added grid test. added documentation for backend
fixed merge conflicts