Feature/auto truncation

Closes #61