Added varargs for error print function. Made sure that require no longer crashes the program.