Added new commands and fixed various issues.