improved the documentation and added a simple configuration mechanism