Fixed for PEP8
Modified for PEP8 format
Output statistical indiactor and rewrite class structure