Added truncate argument, fixes #8.
Minor comment fixes