Added ini file.
Added some sanity checks for inbound data.