[engine]Cleanup, added whitespace, license, etc.