add an entry point for command line usage; make pretty printing optional; dont work on ignored elements;
setup script