Added compiler and fixed bugs