Applied new Clocked interface
Fixes to clocking
Tests for RAM