added credits, changed wordpress db access to be more robust, corrected character counting error. thanks to  Marcus Franke