Update zhort.class.php

refactored and added comments