Implemented module loader (more testing needed)