Fixed numerous memory bugs and pipe command issues. Still working on it.