Test when entry_generators empty
Remove unneeded parameters
Detach code which filters the entry
PEP 8
Make CategoryEntryGenerator for category entries
Make encoder and decoder for entry_after