Add generic Makefile and .gitignore-fixes
simple init and exit function
demo integer parameter