refactored extensively, added overlay for no note detected, updated tests