In sum, here's a way to test if the ING word is a gerund or a participle: insert a subject and the verb TO BE (i.e., is, was, etc.), and if the resulting sentence is grammatical, then the ING word is a participle.
EX: After eating, I fixed my bike.
=> *After quietly reading the book for a...