Added messages and improved logic when there are no changes to commit