Refactor load definition file methods, update docs