Lot of bugs fixed, but it still doesnt compile though.