Moving main content to main method in bundler.
Enabling possibility to run bundler with command line args.
Documenting exctract methods.