Drafted assignContent() and fixed makeSlug()

assignContent now tries to guess a file location and outputs either the
file or a warning (that includes the incorrect file path)

makeSlug had an incorrect argument, $string was passed while $text was
modified. Returns correctly now.