Fix compile errors
Add command targeting
Fixed a few bugs, added a few features