change: reworked source file structure

File structure now better reflects output.
Also supports better file header descriptions.
renamed: core.js