complete document and fix some bugs
Merge branch 'master' of https://github.com/c3bd/BSMA