Changed from GPLv2 to GPLv3
More general work on the rewrite (mainly on pages, linelists and parsing)