added parsing for layers
Added layers fixed some scrolling stuff
more debuging trying to work around a scroll bug in blessed