adding docs and test case
modifying frontend a bit and adding documentation