compilation, but not working
fix segm. fault in initialization
fix another bug with serm. fault