created module structure
created Makefile for installing
fixed various bugs