Set up Errbit for error logging

Per #10.