added doxy comments and added some lagrange basis functions stuff to function approximation