debugged current code, now working (on AVM atleast)
first working example with units, had to change some of eddy's code though