Reformatted code. Added copyright link to documentation