Licensing under GPLv2
WIP: just added a lot of stuff and assured it compiles