Add static keyword to declarations of local-only functions whenever possible
Add license information