Fixed phpdocs, indentions, removed ending php tags and Fixed curly braces