cleaned up code and removed unnecessary files