Added better serializing support for network template.
Merge branch 'devel' into documentation
Added some more documentation.
Added license to some files.