Formatting, compile error fix and copyrighting