mass changes in function input

Improve function inputs
update README
run alignmenttests on matlab to test