Optimized MainActivity and added StatMeth.delete()