added run functions
added get ratio
added viewportsnap
minor changes
initial commit