Added tests - beginning work on draft manual
Added code to make things compile