Initial Commit. converted over from the poteometer code