Fix phpdocs for addrAppend and addrFormat, fixes #81
Minor code cleanup, remove some local vars