created printerror function
created constants file