Code Cleanup

A whole lot of changes to the code base, should result in much cleaner and workable code.
Added LGPL license the way suggested by GNU
Fixed case on TE tech table and texture.