Refactor scanner and connect it with instruction store.
Add a J-format test case.
Add some J-format stuff.