Fixed commit message bug
Fixed xml writing, added option if no commit message added