Created typedef for function pointer
Added macro for creating command functions