Added tree tapping mode to tree farm

Added config option to turn debug mode on or off
Added base TE class to be lazy with some functions (e.g. for computer
input and Math.min(Math.max(a,b),c) replacement