Added pascal interface and demo