fixed style problems and bugs from my previous commit
changed the threshold to 10 GB