Add manual and test notebook. Some fixes.