Made the help functions a bit more modular

This is to allow them to be used externally in other scripts.