code should work, but untested
finished the helper functions
added config.php (not tracked) and elaborated in README