Fixed minor typo, removed dummy main
Added error conditions
Redid prompt messages, fixed file not open bug