Add parseEntries
Refactor: move constants to a module