Move documentation from code to doc/ folder