3.1.1

there will need to be some miner fixes, I asked for help on the programing part (functions.php) Im sure those are outdated. also, I may be picky, but the code format could use some help.