Wrote a buffer
improved compilation script
fixed a serious bug