Version 0.4.1

Memory improvements and a minor bugfix.