separate code into actual library, start parser code