Adding multiple network restrictions, closes #26. Fixed a bug with config checking