Sorry about all this stuff, hard to develop when newlines dissapear...