formate code to drupal style
add options support
Merge pull request #1 from goruha/master

Clean code to Drupal codestyle and add support for options