Refactored code, new methods init_stack and set_patterns
Added fill_in, render, and escape methods
Tests for escape and render