Some bugs fixed. README added