Added strict mode statement, added functions to library