Restructured code for Visual Studio project.  Implemented inventory.ts