split main into seperate functions (input/uarray)
added reading costs from a file
added CSV parser