Added default subject and cleaned code

I removed some unused libraries and added a default subject.