Added GNU GPL, reordered constants, integrate internal map