Fixed issue around removing of old files when data.d is not specified.
Fixed warning messages in java part. Doing better unit tests.