Added cast_to_bool function
Configuration parameters can be assigned by environment variables (closes #43)