A few bugs have been fixed. Makefile added.