Bug fixes and norm fixes. Check in memory done, reading loop to be developped