added valgrind support
Merge branch 'master' of github.com:k2informatics/erloci
common code restructuring, linux bug fixes