Added new test to first function
Added tests to Initial function
[FIX] Reindex compact
[FIX] Compact function
Update README
Added test to flatten functionality