- added comments for new parameters
- removed cast_to_float32
- don't use quit() in externally callable function