Be gone from my face, autochaos! :-)
Fixed to get rid of a compilation warning (cannot assign to different type without cast, -fpermissive).
Reformatted to new style.
Added comment line.
Updated copyright, removed GPL header and updated to modern standard.
Updated to modern standard.