Error condition fixes + added license to README.md