Replace leading 0 to numbers, and newlines by spaces. Some code moved to __init__.
Merge pull request #3 from kpym/master

remove leading 0s and replace newline by spaces