First working version of the reconstructor.
Fixing file rights for tests.
Pass of hlint