Cleaned up the code and commented everything. Very easy on the eyes now.