Augmented the require() function for error reporting; fixed several dumb oversights in shapes module