Removing dead code.
Made params on command ID message better.
Remove dead using.
Added send message function to core.