Got rid of short hand in the code to make it more clear and added some comments.