H264 SPS and PPS frames are now handled correctly
Adds support more H264 NAL types and tidies function