Split hw2.c into command cases

Most of them are still empty. Function declarations go in hw2.h