updated doc
simplified example
typo
added getDouble
simplified API by adding delegates and hiding inner classes