added file manager, changed logic of vector creation