added light sensor handling in shell and fixed long key handling
updated order of methods
fixed return type (is error code)
added magnetometer functionality