MODIFIED: adjusted some of the comments
ADDED: copyright to new files