added getInteger()
added exception
not well, TODO tommorow