added JSDoc comments and made format an optional constructor parameter for the Pinboard class