added isValidAddress()
unified parsing of numeric values, documentation
made parseInt public