Combined new lines and semi colon remover and changed reading so that it reads into an array