Changed the file structure for ease of handling from tsd and added several utility classes.