It is possible to write element data to file.
 - Added some parts of testing code.
 - Fixed bug in code registrating data.