Version 4.0

Made some fixes about the way logs were trimmed.
Merge pull request #3 from karso/version-4.0

Version 4.0