Fixes #6 and Fixes #7

Added DEBUG logs and fixed findFirstFromLeft