environment variable fix and statitcs test ready - Fixed #3 Fixed #11