memory tests passing
minor edits