Swfmeta

Adaptable history length and some tests.