Added instance reader, completed cli parsing