added get_fn function and moved all input structures to single folder; minor rearranging of things