added filesize tag, cleaned up code some more