Updated ignore file
Update documentation string
A lot of work on memory management