First bunch of modifications; Combine inst selector and reg selector for software faults; fixed several serious bugs