Implemented first revisions of reconstruct() and getCode() functions