Rearranged Project

Rearranged project and added import/export to functions necessary for
modules. Added manual loading of the Media library.