Optionalparams

made some libswift params optional