see description

fixing null pointers
start of command handling