The rules for -ing and -ed for regular verbs are as follows:
1) For regular verbs not covered below, simply add -ing or -ed.
to walk => walk+ing => walking
to walk => walk+ed => walked
2) For regular verbs ending in a consonant and a final silent e, drop the final e.
to hate => hate+ing => hat_+ing => hating
to hate => hate+ed => hat_+ed => hated
3) For regular verbs ending in one vowel and one consonant, double the final consonant.
to jog => jog+ing => jogg+ing => jogging
to job => jog+ed => jogg+ed => jogged
Note - Case 3 does not apply to two vowels and one consonant (which is actually case 1)
to bloat => bloating
to bloat => bloated