removed unused debugMode var, renamed function
updated readme