Additions to Preliminary Commit

Commented the code and changed how the program closes. Previously did
not close completely, not it really exits when closed.