Lot of fixes and new visibility condition feature
history to rst format