applied OF code style guides

spaces to tabs and camelcase var names.