Added automatic file header via ReSharper
Ran code cleanup, added license info headers.