Converting to Gradle build format
Added sensor state to pass to queries.
Added initial test setup for the library.