Major refactor, fix for func_code, docstring still not working with anweb