Added Makefile. Cleaned API.