split up files for modularity

They were getting too big for inline inserts anyways.