adding right defaults to params, remove unused params and some copyright info added