add documentation of Ritz function
some more doc
add Projection class + tests