Move all functiosn to core ns, work on examples