Added configurable parameters and some documentation