Added more comments to the code for clearer understanding
Added comments in the code to reference what libraries I used and where I got some code snippets from