Adding proper licenses and copyrights, formatted source code