Completed nios2io @ dtek13 and added a few comments