Moved js file to lib directory
Added example config object
Added functions