Added horizontal support to tiling functions
Switched to read-kbd-macro for consistency