Cleaned up code, removed unnecessary comments.