updated tests
updated readme
updated readme
Keeping code consistent and avoiding some global variable creation.