added test functions back in
moved over to COPY_HOST_PTR for the read only arrays, seems faster
made CLerror handling more plesant