Fixed a coupld errors and added the destroy command