fixed compile error
doc update
fixed performance issue
first version of parallel_pi