Added GPLv3 license and changed to Linux code style