Refactored some code to comply with standards and and reduce complexity.
Merge pull request #13 from reydelleon/bulk_actions

Refactored some code to comply with standards and and reduce complexity.