adds proper documentation for the vector section
cleans up the vector section a little bit
adds documentation for matrix section