Fixed major bug that caused the RAM to be overwritten because of an overflow of a uint32_t. The expected value was around 2000 but it overflowed to the biggest possible value and then it destroyed everything, this was the reason for all the hard faults earlier. Also fixed bug with scrolling and handling of the last row.