Refactored pegel online adapter

Added example in main