Added maven
Major fix. wow this code is awful :(