enhanced serialization
Updated test files
Fixed typo's and warnings
Updated test cases and psr2 fixes
Updated tests and removed deprecated features
Bugfix in metadata
Updated metadata handling
Fixed some issues