inital error handing added

adding some basic error messages