Added new line and commas to config-sample.
Added validation and sync functions for http put requests.