Fix studies parsing

* Fix cabinets detection
* Fix subgroups detection
* Fix retrieving information of study