added ability to create a sub directory
removed some unused things
removed some lint warnings