Fixed bugs; implemented lots of new commands