Added a receive function
Changes to the simple command interface