Optimized the key mapping code.
Added a warnig notice for writing to the first block & updated layout.