turn off prints
add basic test cases; fixed memory lean