def get_elements(filename):
    """ get elements from file, each line is an element """
    elements = list()
    with open(filename, 'r') as f:
        lines = f.readlines()
        return [e.rstrip() for e in lines]