Bug fixes. Bloody ISE
Bug fix: fix the FSM for the Internal memory
more bug fixes