added tests for dictionary enumerations and fixed bug in twt_detect when dealing with dictionaries
added documentation for block enumeration