modifies all begin until loops to until loops

this allows empty linked list to be iterated without error
completes system tests