Second commit of functions. Added comments to Preg.obj and "if BP = F" clause