resolved #23
changed default to be optimize only offsets, resolving #24
added x+y, x-y optimization and made it default, #25