Rewrite documentation

the doc in Resources/doc needs to be cleaned up.