move code into src/ subdirectory