major overhaul

- organized code into several functions
- rewrote friendly bahaviour // more elegant checking for missing dates
- included timestamp functions wp_day() / wp_month() / wp_year() /
wp_yearmonth()
- changed name scheme for friendly csv to include country code