added new way of continue and step, added writing registers, fixed some bugs and added more packet handling functions