#5 tightened up the lifecycle (init,start,stop,free) of InputStream. Added safety checks. Pulled frameSizeQueue out of InputStream