PLFS error code changes

Changes PLFS return type to have every function return a consistent type.