several commits. 

add error handling in some classes. 

mlite5