refactor ldap-query to support reusability

change width of parameters
add help for ldap-query
add export package