composer json update, handling frames
reforming code
unit tests for extended header
unit tests adjustments