Fixed typos and trying to make opt parse work properly