Refactored some of Nipun's awesome stats functions. #160
Merge branch 'master' of github.com:nilmtk/nilmtk