Converted compiler to a lib. Wrote lib.