added licence to all files and fix indentation