Created Setup Script

Cleaned up some of the code. Sorry for the vague commit message, but
at this point I'm pretty sure nobody really cares.