Initial commit of source with lots of debug

Still a work in progress since very few registers
are supported.