PLFS better error handling

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