New init method

Implement the new method init with typepath