re added x and y range setting via optional comma in input
Changed all floats to doubles