update documentation
complete pi_search
add argument parsing to search functions
add knitr README
various fixes and add examples