Restructured the code and assets into directories