cleaned up code, moved static files to separate folder