Made more options configurable, and added documentation