Added licence
Changed message on exit and few bug fixes