Resolved bugs in fron and back routines.
Implemented the assign routines for both cl and amp.
Added test cases for cl and amp.