removed useless debugging info and added POD documentation
modified to run more silently from command line