Update
Setup events, formatted code and added comments.