added support for SET instruction
fixed small bug, added variable based example