removing empty lines from data, bugfixes