r314: cleanup bwamem API

Don't modify input sequences; more documentations