Cleaned up code and commented on it