refactoring code
added setEnv function
added setOptions function
added getOptions function
added onHandlers option
added onHandlers.addLog option
added onHandlers.delLog option
added onHandlers.addBuffer option
added onHandlers.delBuffer option
updated readme
updated version