Fix a few bugs.
Move some stuff around.
Delete the APPL.c file.