added lots of codes
implemented some commands