Move the package code to init.m
improve the example notebook. corrected bug