Fixing require monkey-patch to use apply / updating function signatures / updating demo