minor improvements (now compiles on Linux)
added simple Makefile