moved to xparse

also deleted dependencies on twoopt and xifthen packages.
Improved the documentation of the package.