Added JavaDoc. Added configuration possibilities via new properties.