Rewrote switch-case to a bunch of if statements, completed skeleton code for extract/help/append functions.