added a bit of documentation at the top of a few files
added some documentation about parameters to the mexFunctions
const qualifying a few functions