Added colorings to previews and fixed some minor bugs