added procfile and cleaned up some code