Full code review

What is this 0.1 ? Don't use constants here, move them all in a separate function/object and give them meaningful names.