bugfixes and added free date to output and added message if entry is borrowed