Added docs and fixed functional tests running when they shouldn't be