ParamPtr, Rebuilding and Refactoring

- Added ParamPtr. Forgot to do so which resulted in fails of reading the
tables.
- Worked a lot on the rebuilding tasks and reconstructing the .net
streams.
- Refactored the code to make it more readable.