add test for comments
remove newline in localtion_error call
add neccessary argument to error message
add some comments and swap warning with strncpy