fixed commands and added phistory