Corrected Raspberry Pi port
Better define naming scheme
Attempt at making sane main function