Passing all lite tests.
almost all code ported. lite tests passing.