fixed errors so program runs through cli