All longs are in U unless marked otherwise. The unit U is 1/81000th of a bucket.
For setup instructions please see the fabric wiki page that relates to the IDE that you are using.
This api is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.