refacotr MetaIterator, refactor encryptor, add phpdoc info, refactor some testing.