Added exports and template function
added gitignore
added logging function