Fixed a bug in the key aligning algorithm where the backspace key would end up misplaced when key offset x was modified
Minor fixes and cleanup