Add get code and code3. Add last argument as default return type. Add work with erlang IP tuple