Added a couple new stuff

-Debug function incomplete
-Strange errors logged on IDC