Updating some identifiers.
Adding unit tests for output data creation.
Fixing worng element addresses and adding creation of references.
Updating unit tests.