Updated to version 2

Takes elements on same line into account.
Updated README