Paprika functions now within Paprika object

more logical encapsulation and easier to manage namespace.