Added working commmand API and added an unregister function for the
weapon API