Practiced some practical C
Cleaned up