Renamed Farmer functions and added doxycomments