Moved list functions to the library

- remove local funtion files