Fixed bug for Typo3 4.2, where wrong PID was used in the source, leading to an incorrect redirection in the back-end when adding records.Also removed some stray empty lines after the closing php tag in one file that lead to header errors.