fix minor remarks
cleanup the _getComponents method, fix getTree depth