Reorganize project structure.

Split into .c and .h.
Add Makefile for future expansion.