Updated readme, documented new code, fixed lineInRect function and made settings almost correct json