complete rethink of transposition and layout range
cleaned up comments etc, increment version to 0.2