added out-of-the-box functionality with hiForest
put corrections in subfile and added an exit command if parameters are out of bounds