Fixed a bunch of problems and added commands