started to format and apply style guidelines to code