fixed bugs and added guest system register reading