Cast attribute lists to arrays

Cast attribute lists to arrays in read operations
Moved global functions to separate file

Moved global function definitions to separate file and added composer
entry