separate script into different files
add support for Google Code. closes #2