Reorganizing code
Problem with to_json solved
Working on absolute and relative positions