Update code formatting

Most of this are removed newlines near the end of file.