Removed unused function, fixed code style, added function to check for opencl

follow ze guide http://google-
styleguide.googlecode.com/svn/trunk/cppguide.html