Added getHead method to linkedlist struct and made a few other changes.