Initial clean ups

So I have removed unneeded macros, commented out code, reimplemented Avisynth interfaces and have fixed up the formatting to be more consistent.