added some comments
added some comments
better organized
uses proper directories