Fixed some bugs & added log method
Made method option case insensitive