adding trace
fix trace bug in set method
fix example to use command line args, fix '-' handling in arg parse