Modified to accept 1 dimensional PIR queries
add more documentation