converted to doxygen commenting tags
did some clever stuff involving structs and shit
.