Reverted back from int to double for most objects. See working doc
Signed-off-by:Arie <arieclaassens@gmail.com>