Fix incorrect casing.
Moved file access into a `serializer` class.
Moved aggregators into the `lib` module/folder.