Added isFrame0Ready() isFrame1Ready() and modified getNonReadyFrame() an...

...d getReadyFrame() and its test code