[epg] general cleanup and some small improvements

@xhaggi and @opdenkamp for review

I'll write up a proper PR description later, I gotta go now!