updates to be compatibile with php 5.4
Added weight class
Added swiftmailer dependency