started with moving doc to sphinx

basically all existing documentation was moved to sphinx, but there are
still some areas where doc is lacking.

some restructuring is also necessary