added init method and readme updated