changed string copy to use 'arrays'
added function descriptions
added comments to new functions