edited answer styles and added simple error handling