Moved many parts to rst.