Fixed all errors, removed roundPoint for doubles, all works.