Better handling of intial prettyPrinter registration

Also, add license information to added headers