Style and copyright

Changed to Allman style and added a copyright notice.