added comments to most files, fixed score leak