Add memcheck and fix RAM formatting issue