Added error codes into error.h, and a place holder for the stream constructor