Fixed lint warnings

Fixed bunch of lint warnings and updated sample code for usage page