minor styling improvements
implementing mime-type detection