updated: framework.usage()
updated: error message
updated code