Version 0.5.2 including fixes for memory leak