 {exec}  = require "child_process"
 os      = require "os"
 
+# Bang is program for storing and retrieving text snippets
+# on the command line.
 module.exports = class Bang
+  # Initializes Bang's data store.
   constructor: ->
     @data = @getData()
 
+  # Entry point for the CLI. Processes arguments and delegates
+  # to the appropriate methods.
   start: (args) ->
     program = new Command
 


    this

  pad: (item, amount) ->
    out = ""
    i = amount - item.length


    this

  # Copy a value to the clipboard on Mac OS X and Linux.
  copy: (value) ->
    copyCommand = if os.type().match /darwin/i then "pbcopy" else "xclip -selection clipboard"
    exec "printf '#{value.replace(/\'/g, "\\'")}' | #{copyCommand}", (error, stdout, stderr) ->
