Code doc updates
Preliminary error window function