Added missing Copyright(c) statements and formated code