updated demo for new init method, added import function