Added functionality to get weights from user
Updated adding weight to write to file, change type from int to string