minor refactorings
updated readme