fixed missing termination in case of multiple accessor
added copyrights