Created validation/formatting for input parameters when creating a class in /lib.