Cleaned up require; added create_directory method.