adding main
using logger
adding back in javax.activation
adding test