sample main program and email chan
small fixes