squash msvc warnings
be const-strict
use double not float
cosmetic fix
enlarge buffer defaults