added string concatenation function
added minmal validation of file argument