removed redirect loop from swagger-ui code. Added code to create the docs directory if it isn't there