fixed misspelling
addressed variable override issue #97 and added some doc