decorator for defining and adding commands easier

Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>
examples++

Signed-off-by: Steven Armstrong <steven.armstrong@inf.ethz.ch>