Changed basename. Added copyright. Fixed stuff.