ref #1226 - FrameBuffer fixes&features

- debugged new frame buffer (unit tests for Segment, Slot, FrameBuffer
classes)
- code cleanup
- small fixes, typos