Moved error into its own module, implemented std Error trait, pa/mod.rs now returns Result