cleans up Get Block Type
adds a default boolean test to if etc.
Position code clean up
new position calc