More code cleanup
Added putreg16 subroutine
Also sorted files better