Add class to manage Folder table

  * Various bug fixes