added comments to pred files and some documentation