updated readme and sample program