Removed tree check and added expert info

Removed trailing spaces
Removed if(tree)
Added expert info in case of incorrect offset
Removed unused handle