updated namespace to include Api. Also removed any code that had the hard coded path length and instead will dynamically figure out the path. Mostly related to file system and checking if files exist.