Refactored errors to their own file
Building as a separate function
Building will later encompass more than just copying