changed program structure, altered import, added try-catch for searching
by name