added nil? function
added some more test programs