Restructured files and separated code into different files, added grunt file, and package.json