Changed directory structure, added documentation, added comments