updating code

Signed-off-by: Daniel Newns <dan@higgsdesign.com>
updating error docs

Signed-off-by: Daniel Newns <dan@higgsdesign.com>