Create error-checking

initial commit