Changed the structure and files to use npm and tsd