Moved the refractory check to the state update loop
Added instructions for importing sources to Android Studio