Added GNU GPL license at beginning, minor changes