Move src to lib
Switch to 2 spaces
Remove redundant IIFE from test