Remove comments.
Add serialization to frames.
Add frame hierarchy and test cases.