command complete

- building command complete
- new function to convert integer to byte array

Signed-off-by: binovsky <michal.binovsky@outlook.com>