improved getStatistics script + added readme