Fix coding style and licenses