Corrected some GUI bugs
Added licence