Few changes

.conf writer partially done
Come bug fixes