Added in some more error handling.  Removed stdout from build command.
Fixed up the build command (needs cleaning).