Add Apache license header.
Check return value of delete() and return false when unsuccessful.
Update submitDirectory()'s JavaDoc to reflect correct return type.