Support java 6, Fix case insensitive bug, Add Ignore pattern feature

This project helped me a lot.
I added some codes.
Please accept my commits if you don`t mind.

Thank you.